package com.abcd.godating.domain;

import java.util.Date;

import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Document
public class Message {
	@Id
	private ObjectId id;
	private long from;
	private long to;
	private Date date;
	private String content;
	private boolean read;
	private boolean fromDeleted;
	private boolean toDeleted;

	public String getContent() {
		return content;
	}

	public Date getDate() {
		return date;
	}

	public long getFrom() {
		return from;
	}

	public ObjectId getId() {
		return id;
	}

	public long getTo() {
		return to;
	}

	public boolean isFromDeleted() {
		return fromDeleted;
	}

	public boolean isRead() {
		return read;
	}

	public boolean isToDeleted() {
		return toDeleted;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public void setFrom(long from) {
		this.from = from;
	}

	public void setFromDeleted(boolean fromDeleted) {
		this.fromDeleted = fromDeleted;
	}

	public void setId(ObjectId id) {
		this.id = id;
	}

	public void setRead(boolean read) {
		this.read = read;
	}

	public void setTo(long to) {
		this.to = to;
	}

	public void setToDeleted(boolean toDeleted) {
		this.toDeleted = toDeleted;
	}

}
